<?php

declare(strict_types=1);
/**
 * This file is part of habo_new_media.
 *
 * @link     https://www.berlen.cn/
 * @contact  tech@berlen.cn
 * @license  http://gitlab.rehou.cn/habo/habo_new_media/-/blob/master/README.md
 */
namespace app\model;

use app\enum\QqEnum;
use think\Model;

class QqAdvertiserDailyStatModel extends Model
{
    protected $name = 'qq_advertiser_daily_stat';

    /*
     * 获取消耗
    */
    public function getCost(): float
    {
        return floatval($this->cost);
    }

    /*
  * 获取赠款消耗
  */
    public function getRewardCost(): float
    {
        return floatval($this->reward_cost);
    }

    /*
  * 获取赠款消耗
  */
    public function getCashCost(): float
    {
        return floatval($this->cash_cost);
    }

    /*
    * 获取余额
    */
    public function getBalance(): float
    {
        return floatval($this->balance / 100);
    }
}
